package com.ssf.framework.config;

import com.raiyee.hi.boss.spring.AppContext;

/**
 * Created by liolay on 15-7-29.
 */
public abstract class ConfigTemplate {

    public static ConfigTemplate getConfigBean() {
        return AppContext.getBean(ConfigTemplate.class);
    }

    public RedisConfig getRedisConfig() {
        return getConfigBean().getRedis();
    }


    public ResourceConfig getResourceConfig() {
        return getConfigBean().getResource();
    }

    protected RedisConfig getRedis() {
        return new RedisConfig();
    }

    protected ResourceConfig getResource() {
        return new ResourceConfig();
    }

    protected void getName(){

    }
}
